# 实现一个由数字组成的4个字验证码功能
import random
def get_num():
    my_str = ''
    for i in range(4):
        num = random.randint(0,9)
        my_str += str(num)
    return  my_str

if __name__ == '__main__':
    print(get_num())